import { createRouter, createWebHashHistory } from 'vue-router'

const routerFactory = {
    init: (app) => {
        app.use(routerFactory.create())
    },
    create: () => {
        return createRouter({
            history: createWebHashHistory(),
            routes: [
                {
                    path: '/',
                    name: 'main',
                    component: () => import('/@/pages/firstScreen/mainPage.vue')
                },
                {
                    path: '/home',
                    name: 'home',
                    component: () => import('/@/pages/home.vue')
                }
            ]
        })
    }
}
export default routerFactory
